package com.gjj.echarts.echartsgjj.vo;

import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 所有的柜面渠道，包括银行卡转账，支票，贷记凭证
 */
@ToString
public class CabinetSideChannelVo {
    //银行卡转账
    private BigDecimal bankAccounting;
    private Integer bankAccountingUnit;
    private Integer bankAccountingPeople;
    //支票
    private BigDecimal check;
    private Integer checkUnit;
    private Integer checkPeople;
    //贷记凭证
    private BigDecimal creditVoucher;
    private Integer creditVoucherUnit;
    private Integer creditVoucherPeople;

    //总单位数
    private Integer totalCabinetSideUnit;
    //总人数
    private Integer totalCabinetSidePeople;

    public BigDecimal getBankAccounting() {
        return bankAccounting;
    }

    public void setBankAccounting(BigDecimal bankAccounting) {
        this.bankAccounting = bankAccounting;
    }

    public Integer getBankAccountingUnit() {
        return bankAccountingUnit;
    }

    public void setBankAccountingUnit(Integer bankAccountingUnit) {
        this.bankAccountingUnit = bankAccountingUnit;
    }

    public Integer getBankAccountingPeople() {
        return bankAccountingPeople;
    }

    public void setBankAccountingPeople(Integer bankAccountingPeople) {
        this.bankAccountingPeople = bankAccountingPeople;
    }

    public BigDecimal getCheck() {
        return check;
    }

    public void setCheck(BigDecimal check) {
        this.check = check;
    }

    public Integer getCheckUnit() {
        return checkUnit;
    }

    public void setCheckUnit(Integer checkUnit) {
        this.checkUnit = checkUnit;
    }

    public Integer getCheckPeople() {
        return checkPeople;
    }

    public void setCheckPeople(Integer checkPeople) {
        this.checkPeople = checkPeople;
    }

    public BigDecimal getCreditVoucher() {
        return creditVoucher;
    }

    public void setCreditVoucher(BigDecimal creditVoucher) {
        this.creditVoucher = creditVoucher;
    }

    public Integer getCreditVoucherUnit() {
        return creditVoucherUnit;
    }

    public void setCreditVoucherUnit(Integer creditVoucherUnit) {
        this.creditVoucherUnit = creditVoucherUnit;
    }

    public Integer getCreditVoucherPeople() {
        return creditVoucherPeople;
    }

    public void setCreditVoucherPeople(Integer creditVoucherPeople) {
        this.creditVoucherPeople = creditVoucherPeople;
    }

    public Integer getTotalCabinetSideUnit() {
        Integer total = 0;
        total += this.getBankAccountingUnit();
        total += this.getCheckUnit();
        total += this.getCreditVoucherUnit();
        return total;
    }

    public Integer getTotalCabinetSidePeople() {
        Integer total = 0;
        total += this.getCheckPeople();
        total += this.getCreditVoucherPeople();
        total += this.getBankAccountingPeople();
        return total;
    }

}
